<?
class T_Banner implements I_Module {
	
	public function GetModuleContent($param=null){
		switch ($param){
			case "[CMD=2;]": return($this->GetSecond());
		}
		return(null);
	}
	
	private function GetSecond(){
		$k = new T_Kernel();
		$sql = $k->GetSQLObject();
		$sql->SetTable("PAGES");
		$q = "SELECT CONTENT FROM <DT> WHERE `PATH` = 'second_banner'";
		$pg = $sql->ExecuteQuery($q);
		$pg = mysql_fetch_array($pg, MYSQL_ASSOC);
		return($pg["CONTENT"]);
	}
}
?>